/**
 * config.js
 */

let config = {
	baseUrl: '',
	baseImgUrl: ''
}

if(process.env.NODE_ENV === 'development'){
	// 开发环境
	config.baseUrl = 'http://ceshi.newtracer.com/sports/api/'//测试
	config.baseImgUrl = 'https://dev-x3d8qsvx-173ik1f9s1jz0x3pvpbz-cb.oss-cn-beijing.aliyuncs.com/images/applet/'//
	// config.baseUrl = 'https://www.newtracer.com/sports/api/'//生产
	// config.baseImgUrl = 'https://dev-x3d8qsvx-173ik1f9s1jz0x3pvpbz-cb.oss-cn-beijing.aliyuncs.com/images/applet/'
}else{
	// 生产环境 
	//-----注意---------
	// §§§注意§§§生产还要修改uni.scss中的url

	// config.baseUrl = 'https://www.newtracer.com/sports/api/'//生产
	// config.baseImgUrl = 'https://pro-x3d8qsvx-173ik1f9s1jz0x3pvpbz-cb.oss-cn-beijing.aliyuncs.com/images/applet/'//生产
	
	config.baseUrl = 'http://ceshi.newtracer.com/sports/api/'//测试
	config.baseImgUrl = 'https://dev-x3d8qsvx-173ik1f9s1jz0x3pvpbz-cb.oss-cn-beijing.aliyuncs.com/images/applet/'//测试
}

module.exports = {
	baseUrl: config.baseUrl,
	baseImgUrl: config.baseImgUrl
}